import request from '@/router/axios'

export function fetchWxKeywordsList(query) {
  return request({
    url: '/mp/wxkeywords/page',
    method: 'get',
    params: query
  })
}

export function addWxKeywordsObj(obj) {
  return request({
    url: '/mp/wxkeywords',
    method: 'post',
    data: obj
  })
}

export function getWxKeywordsObj(id) {
  return request({
    url: '/mp/wxkeywords/' + id,
    method: 'get'
  })
}

export function delWxKeywordsObj(id) {
  return request({
    url: '/mp/wxkeywords/' + id,
    method: 'delete'
  })
}

export function putWxKeywordsObj(obj) {
  return request({
    url: '/mp/wxkeywords',
    method: 'put',
    data: obj
  })
}
